package cn.com.shadowless.xinning.adapter;


import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import cn.com.shadowless.xinning.R;
import cn.com.shadowless.xinning.model.bill.BillCountInfo;

/**
 * The type Bill fragment right adapter.
 *
 * @author sHadowLess
 */
public class BillFragmentRightAdapter extends BaseQuickAdapter<BillCountInfo.DataBean.ItemListBean, BaseViewHolder> {


    public BillFragmentRightAdapter(int layoutResId, @Nullable List<BillCountInfo.DataBean.ItemListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, BillCountInfo.DataBean.ItemListBean item) {
        String orderId = item.getOrderId();
        String billName = item.getBillName();
        String applyName = item.getApplyName();
        String createTimeStr = item.getCreateTimeStr();
        helper.setText(R.id.bill_order_right_orderId, orderId);
        helper.setText(R.id.bill_order_right_orderType, billName);
        helper.setText(R.id.bill_order_right_checkHuman, applyName);
        helper.setText(R.id.bill_order_right_checkTime, createTimeStr);
        helper.addOnClickListener(R.id.bill_order_right_item);
    }
}
